/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import be.Control;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;


public class ControlController {

    /** Creates a new instance of ControlController */
   private Control control;

    public Control getControl() {
        return control;
    }

    public void setControl(Control control) {
        this.control = control;
    }

    public ControlController() {
        Calendar calendar = java.util.Calendar.getInstance();
        control = new Control();
        control.setFechaLogin(calendar.getTime());
        control.setUsuario("Carla Solorzano");
        control.setFechaActual(calendar.getTime());
        control.setModulo("Solicitud y Aprobacion de Creditos");
    }
    public String getHoraSistema() {
        SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss");
        return sdf.format(new Date());
    }




}

